<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>把韵味杭州带在身边</title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
    <meta name="apple-touch-fullscreen" content="YES">
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    <!--<link rel="stylesheet" type="text/css" href="//cdn.bootcss.com/animate.css/3.5.2/animate.min.css">-->
     <!-- <link rel="stylesheet" type="text/css" href="/Public/projects/card/libs/animate.css"> -->
    <link rel="stylesheet" type="text/css" href="/Public/projects/card/style/base.css">
    <link rel="stylesheet" type="text/css" href="/Public/projects/card/style/index.css">
    <!-- <link rel="stylesheet/less" type="text/css" href="/Public/projects/card/style/index.less"> -->
</head>
<body>

<div class="share container">
    <div class="bg" onclick="">
        <img src="/Public/projects/card/assets/images/share.png">
    </div>
</div>

<!-- ========================================================================= -->
<script src="/Public/projects/card/libs/jquery-3.1.1.min.js"></script>
<!-- <script src="/Public/projects/card/libs/less.js"></script> -->
<!--common of all js file-->
<script src="/Public/projects/card/js/common.js"></script>
<!--add self scrip file-->
<script>
    $(function () {
        $(".bg").tap(function () {
            ns.navigate( ns.route("mobile.html")+"?id="+ns.getId() );
        });
    });
</script>
</body>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript">
    wx.config({
        debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
        appId: '{$wxuser["appid"]}', // 必填，公众号的唯一标识
        timestamp: "{$timestamp}", // 必填，生成签名的时间戳
        nonceStr: '{$nonceStr}', // 必填，生成签名的随机串
        signature: '{$wxSha1}',// 必填，签名，见附录1
        jsApiList: ['onMenuShareAppMessage','onMenuShareTimeline'] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2
    });
    wx.error(function(res){
        //console.log(res);
        // config信息验证失败会执行error函数，如签名过期导致验证失败，具体错误信息可以打开config的debug模式查看，也可以在返回的res参数中查看，对于SPA可以在这里更新签名。
    });
    wx.ready( function( e ){
        wx.onMenuShareAppMessage({
            title: "{$card['share_title']}", // 分享标题
            desc: "{$card['share_desc']}", // 分享描述
            link: location.protocol + "//" + window.location.hostname + "/Wap/Card/index?id={$card['card_id']}", // 分享链接
            imgUrl: location.protocol + "//" + window.location.hostname + "{$card['share_pic']}", // 分享图标

            type: 'link', // 分享类型,music、video或link，不填默认为link
            dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
            success: function () {
                // 用户确认分享后执行的回调函数
            },
            cancel: function () {
                // 用户取消分享后执行的回调函数
            }
        });
        wx.onMenuShareTimeline({
            title: "{$card['share_title']}", // 分享标题
            desc: "{$card['share_desc']}",
            link: location.protocol + "//" + window.location.hostname + "/Wap/Card/index?id={$card['card_id']}", // 分享链接
            imgUrl: location.protocol + "//" + window.location.hostname + "{$card['share_pic']}", // 分享图标
            success: function () {
                // 用户确认分享后执行的回调函数
            },
            cancel: function () {
                // 用户取消分享后执行的回调函数
            }
        });
    })


</script>
<script src="/Public/js/common/baidutongji.js"></script>
</html>